package com.authority.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.authority.entry.AuthActionDO;
import com.authority.query.AuthActionQuery;


/**
 * 
 * @author wb-limeng.g
 *
 */

public interface AuthActionDAO {

	Long insertAuthAction(AuthActionDO db);

	int updateAuthAction(AuthActionDO db);

	int deleteAuthActionByIds(String ids);

	List<AuthActionDO> queryAuthAction(AuthActionQuery query);
	
	int queryAuthActionCount(AuthActionQuery query);

	AuthActionDO queryAuthActionById(Long id);
	
	/**
	 * 根据sysId和code检查唯一性
	 * @param code
	 * @param sysId
	 * @return
	 */
	AuthActionDO queryAuthActionBySysIdAndCode(@Param("code")String code,@Param("sysId")Long sysId);

	/**
	 * 根据sysId查
	 * @param code
	 * @return
	 */
	List<AuthActionDO>  queryAuthActionBySysId(Long sysId);
}
